home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_100 / 160_01 / lccm.bat < prev    next >
DOS Batch File  |  1985-11-18  |  559b  |  28 lines

  1. break on
  2. echo ===========: >>lcc.out
  3. echo New compile: >>lcc.out
  4. :loopcc
  5. if "%1"=="++" goto dolink
  6. if "%1"=="" goto done
  7. echo %1: >>lcc.out
  8. lc1  %1 -a -c -d -n -mS  -ic:\lc\ >>lcc.out
  9. if errorlevel 1 goto bustcc
  10. lc2 %1 >>lcc.out
  11. if errorlevel 1 goto bustcc
  12. goto nextloop
  13. :bustcc
  14. if exist %1.obj del %1.obj
  15. :nextloop
  16. shift
  17. goto loopcc
  18. :dolink
  19. shift
  20. if exist %1.exe del %1.exe
  21. link C+%1%2+error,%1,nul,LCM+LC >>lcc.out
  22. if not exist %1.exe goto bust
  23. goto done
  24. :bust
  25. if exist %1.exe del %1.exe
  26. echo unsuccessful compile >>lcc.out
  27. :done
  28.